package com.zjj.learn.javaplus.pkg01.demo14;

public class Teacher extends Person{

    public Teacher(String name, Integer age) {
        super(name, age);
    }

    public void teach(){
        System.out.println(super.getName() + "上课");
    }

    @Override
    public void eat() {
        super.eat();
    }

    @Override
    public void sleep() {
        super.sleep();
    }
}
